return $str;
}
function _doinsert($table, $vals) {
- die( 'abstract function SqlBagOStuff::_doinsert() must be defined' );
+ wfDie( 'abstract function SqlBagOStuff::_doinsert() must be defined' );
}
function _doquery($sql) {
- die( 'abstract function SqlBagOStuff::_doquery() must be defined' );
+ wfDie( 'abstract function SqlBagOStuff::_doquery() must be defined' );
}
function _fetchrow($res) {
- die( 'abstract function SqlBagOStuff::_fetchrow() must be defined' );
+ wfDie( 'abstract function SqlBagOStuff::_fetchrow() must be defined' );
}
function _freeresult($result) {
}
function _maxdatetime() {
- die( 'abstract function SqlBagOStuff::_maxdatetime() must be defined' );
+ wfDie( 'abstract function SqlBagOStuff::_maxdatetime() must be defined' );
}
function _fromunixtime() {
- die( 'abstract function SqlBagOStuff::_fromunixtime() must be defined' );
+ wfDie( 'abstract function SqlBagOStuff::_fromunixtime() must be defined' );
}
function garbageCollect() {
$serial = $decomp;
}
}
- wfdebug("serial: [$serial]\n");
$ret = unserialize( $serial );
return $ret;
}
function getTableName() {
if ( !$this->tableInitialised ) {
$dbw =& wfGetDB( DB_MASTER );
- /* This is actually a hack, we should be able
+ /* This is actually a hack, we should be able
to use Language classes here... or not */
if (!$dbw)
- die("Could not connect to database");
+ wfDie("Could not connect to database");
$this->table = $dbw->tableName( $this->table );
$this->tableInitialised = true;
}